home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwlbel.dir / 00161_Script_161 < prev    next >
Text File  |  1994-11-15  |  4KB  |  155 lines

  1. on startMovie
  2.   cursor 4
  3.   global currMM
  4.   set currMM = "FLWWT"
  5.   
  6.   preLoadCast 18,19
  7.   
  8.   puppetSprite 21, TRUE
  9.   puppetSprite 22, TRUE
  10.   puppetSprite 23, TRUE
  11.   puppetSprite 2, TRUE
  12.   set the immediate of sprite 23 to TRUE
  13.   set the stretch of sprite 23 to FALSE
  14. end startMovie
  15.  
  16. on saveLocals
  17.   global lastMovie, lastFrame, nowFrame
  18.   set lastFrame = nowFrame
  19.   set lastMovie = "FLWLbel"
  20. end saveLocals
  21.  
  22. on buttonState
  23.   global FrankNav, bFlag
  24.   
  25.   if rollover(11) or rollover(12) then
  26.     set the castNum of sprite 2 to 1090
  27.     if the mouseDown then
  28.       set the castNum of sprite 2 to 1091
  29.     end if
  30.   else 
  31.     set the castNum of sprite 2 to 1089
  32.   end if
  33.   
  34.   rollCheck
  35.   if (the mouseV > 400) or (bFlag = TRUE) then
  36.     doState
  37.   end if
  38. end buttonState
  39.  
  40. on rollCheck
  41.   global right, left, forw, down, pos, floor
  42.   if the mouseH>=257 and the mouseH<=347 and the mouseV>67 and the mouseV<307 then
  43.     if right = 1 then
  44.       set pos = 3
  45.       cursor [1065,1066]
  46.     else
  47.       set pos = 0
  48.       cursor [1071,1072]
  49.     end if
  50.   else if the mouseH>=27 and the mouseH<=119 and the mouseV>67 and the mouseV<307 then
  51.     if left = 1 then
  52.       set pos = 1
  53.       cursor [1069,1070]
  54.     else
  55.       set pos = 0
  56.       cursor [1071,1072]
  57.     end if
  58.   else if the mouseH>=117 and the mouseH<=257 and the mouseV>67 and the mousev<217 then
  59.     if forw = 1 then
  60.       set pos = 2
  61.       cursor [1067,1068]
  62.     else
  63.       set pos = 0
  64.       cursor [1071,1072]
  65.     end if
  66.   else if the mouseH>=117 and the mouseH<=257 and the mouseV>217 and the mouseV<307 then
  67.     if down = 1 then
  68.       set pos = 4
  69.       cursor [1073,1074]
  70.     else if down = 0 and forw = 1 then
  71.       set pos = 2 
  72.       cursor [1067,1068]
  73.     else
  74.       set pos = 0
  75.       cursor [1071,1072]
  76.     end if
  77.   else 
  78.     set pos = 0
  79.     cursor -1
  80.   end if
  81.   
  82.   if the mouseH>334 and the mouseH<362 then
  83.     if the mouseV>111 and the mouseV<128 and floor<>5 then
  84.       set pos = 5
  85.       set the castNum of sprite 6 to 8
  86.     else if the mouseV>173 and the mouseV<190 and floor<>3 then
  87.       set pos = 6
  88.       set the castNum of sprite 6 to 7
  89.     else if the mouseV>233 and the mouseV<250 and floor<>1 then
  90.       set pos = 7
  91.       set the castNum of sprite 6 to 6
  92.     else 
  93.       set the castNum of sprite 6 to 5
  94.     end if
  95.   else 
  96.     set the castNum of sprite 6 to 5
  97.   end if
  98. end rollCheck
  99.  
  100. on FloorOne
  101.   global pos, cont
  102.   if pos = 5 then
  103.     set the CastNum of sprite 6 to 12
  104.     set cont = 1
  105.     cursor 4
  106.     go to frame "lbele000001n°°"
  107.   else if pos = 6 then
  108.     set the CastNum of sprite 6 to 11
  109.     set cont = 0
  110.     cursor 4
  111.     go to frame "lbele000001n°°"
  112.   end if
  113. end FloorOne
  114.  
  115. on FloorThree
  116.   global pos, cont
  117.   if pos = 5 then
  118.     set the CastNum of sprite 6 to 12
  119.     cursor 4
  120.     go to frame "lbele000004n°°"
  121.   else if pos = 7 then
  122.     set the CastNum of sprite 6 to 10
  123.     set cont = 0
  124.     cursor 4
  125.     go to "lbele000002n°°"
  126.     repeat with i = 1 to 44
  127.       go to the frame - 1
  128.       unLoadCast 27,136
  129.     end repeat
  130.   end if
  131. end FloorThree
  132.  
  133. on FloorFive
  134.   global pos, cont
  135.   if pos = 7 then
  136.     set the CastNum of sprite 6 to 10
  137.     set cont = 1
  138.     cursor 4
  139.     go to "lbele000005n°°"
  140.     repeat with i = 1 to 83
  141.       go to the frame - 1
  142.       unLoadCast 27,136
  143.     end repeat
  144.   else if pos = 6 then
  145.     set the CastNum of sprite 6 to 11
  146.     cursor 4
  147.     set cont = 0
  148.     go to "lbele000005n°°"
  149.     repeat with i = 1 to 38
  150.       go to the frame - 1
  151.       unLoadCast 27,136
  152.     end repeat
  153.   end if
  154. end FloorFive
  155.